<?php

 
namespace com;
include "com/funcs/add.php";
trait comProperty{

    public $name="JACK";
    public $age=21;
 
 }
  
$obj=new class {
    use comProperty;
};
echo $obj->age;